<%@include file="../header.jsp"%>
 
<!-- start content-outer ........................................................................................................................START -->
<div id="content-outer">
<!-- start content -->
<div id="content">

	<!--  start page-heading -->
	<div id="page-heading">
		<h1>Jadwal Sidang</h1>
	</div>
	<!-- end page-heading -->
    
    <!-- start search -->
    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
      <tr>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
		<th class="topleft"></th>
		<td id="tbl-border-top">&nbsp;</td>
		<th class="topright"></th>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
	</tr>
	<tr>
		<td id="tbl-border-left"></td>
		<td>
		<!--  start content-table-inner ...................................................................... START -->
		<div id="content-table-inner">
			<div id="table-content">
                            <script>
                                function validateListJadwalSidang()
                                {
                                if (document.jadwalSidang.jenisSidang.value == "0")
                                {
                                    alert("Tahapan sidang harus diisi !");
                                    document.jadwalSidang.jenisSidang.focus();
                                    return false;
                                }
                                else if (document.jadwalSidang.lab.value == "0")
                                {
                                alert("Nama lab harus diisi !");
                                document.jadwalSidang.lab.focus();
                                return false;
                                }
                                else if (document.jadwalSidang.tglSidang.value == "")
                                {
                                alert("Tanggal harus diisi !");
                                document.jadwalSidang.tglSidang.focus();
                                return false;
                                }
                                }
                            </script>
                            <table border="0" width="100%" cellpadding="0" cellspacing="0" id="id-form">
                                    <form name="jadwalSidang" id="mainform" action="SidangTAController?page=jadwalSidang" onSubmit="return validateListJadwalSidang()" method="post">
                                        <tr>
                                            <th width="100" valign="center" >Tahapan Sidang </th>
                                            <td width="20" align="center" valign="middle">:</td>
                                            <td width="200"><select name="jenisSidang" class="styledselect_form_1">
                                            <option value="0">-- PILIH TAHAPAN SIDANG --</option>
                                            <option value="SIDANG PROPOSAL" <c:if test="${jenisSidang == 'SIDANG PROPOSAL'}" >selected="selected"</c:if> >SIDANG PROPOSAL</option>                                            
                                            <option value="SIDANG FINAL" <c:if test="${jenisSidang == 'SIDANG FINAL'}" >selected="selected"</c:if>>SIDANG FINAL</option>
                                            </select></td>

                                            <td width="10"></td>
                                            
                                            <th valign="middle" align="center">Lab</th>
                                            <td valign="middle" align="center">:</td>
                                            <td>
                                                
                                                <select name="lab" class="styledselect_form_1">
                                                <option value="0">-- pilih nama lab --</option>
                                                    <c:forEach items="${listlab}" var="listlab">
                                                    <option value="${listlab.namaLab}"
                                                    <c:if test="${(listlab.namaLab == lab)}">
                                                            selected="selected"
                                                    </c:if>
                                                    >${listlab.namaLab}</option>
                                                    </c:forEach>
                                                </select>
                                            </td>
                                            
                                            <td width="10"></td>

                                            <th width="100" valign="center" align="right">Tanggal</th>
                                            <td width="20" valign="middle" align="center">:</td>
                                            <td width="300">
                                                <input id="tanggalMulai" name="tglSidang" class="inp-form" type="text" value="${tglSidang}"/>
                                            </td>
                                            <td></td>
                                            <td width="0"><input value="" class="form-tampilkan" type="submit" /></td>
                                        </tr> 
                                    </form>
                            </table>
                                            
                                
                                
				<!--  start product-table ..................................................................................... -->
				<form id="mainform" action="">
				<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
				<tr>
                                        <th width="20" class="table-header-repeat line-left"><a href="">No</a></th>
					<th width="100" class="table-header-repeat line-left"><a href="">NRP</a></th>
                                        <th width="500" class="table-header-repeat line-left "><a href="">Nama</a></th>
                                        <th width="500" class="table-header-repeat line-left "><a href="">judul</a></th>
					<th width="80" class="table-header-repeat line-left "><a href="">Tanggal</a></th>
					<th width="80" class="table-header-repeat line-left "><a href="">Waktu</a></th>
                                        <th width="40" class="table-header-repeat line-left"><a href="">Tempat</a></th>
					<th width="173" class="table-header-repeat line-left minwidth-1"><a href="">Pembimbing 1</a></th>
                                        <th width="173" class="table-header-repeat line-left minwidth-1"><a href="">Pembimbing 2</a></th>
                                        <th width="173" class="table-header-repeat line-left minwidth-1"><a href="">Penguji 1</a></th>
                                        <th width="173" class="table-header-repeat line-left minwidth-1"><a href="">Penguji 2</a></th>
					
                                </tr>
                                <% int i = 1;%>
                                
                                
                                <c:if test="${jenisSidang != null}">
                                <c:if test="${empty listJadwalSidang}">
                                    <tr>
                                        <td colspan="11" align="center" >Jadwal sidang tidak ditemukan</td>
                                    </tr>
                                </c:if>
                                <c:forEach items="${listJadwalSidang}" var="listJadwalSidang" >
                                <tr>
                                        <td align="center"><% out.print(i); i++; %></td>
					<td>${listJadwalSidang.ta.user.idUser}</td>
                                        <td>${listJadwalSidang.ta.user.namaUser}</td>
                                        <td>${listJadwalSidang.ta.judul}</td>
					<td>${listJadwalSidang.tglSidang}</td>
					<td>${listJadwalSidang.wktSidang}</td>
                                        <td>${listJadwalSidang.tempatSidang}</td>
                                        <td>
                                            <c:forEach items="${namaDosen}" var="namaDosen">
                                            <c:if test="${(namaDosen.user.idUser == listJadwalSidang.ta.pembimbing1)}">    
                                            ${namaDosen.user.namaUser}
                                            </c:if>
                                            </c:forEach>
                                        </td>
                                        <td>
                                            <c:forEach items="${namaDosen}" var="namaDosen">
                                            <c:if test="${(namaDosen.user.idUser == listJadwalSidang.ta.pembimbing2)}">    
                                            ${namaDosen.user.namaUser}
                                            </c:if>
                                            </c:forEach>
                                        </td>
                                        <td>
                                            <c:forEach items="${namaDosen}" var="namaDosen">
                                            <c:if test="${(namaDosen.user.idUser == listJadwalSidang.penguji1)}">    
                                            ${namaDosen.user.namaUser}
                                            </c:if>
                                            </c:forEach>
                                        </td>                                        
                                        <td>
                                            <c:forEach items="${namaDosen}" var="namaDosen">
                                            <c:if test="${(namaDosen.user.idUser == listJadwalSidang.penguji2)}">    
                                            ${namaDosen.user.namaUser}
                                            </c:if>
                                            </c:forEach>    
                                        </td>
                                </tr> 
                                </c:forEach>
                                </c:if>
                                
                                                              
                                
				</table>
				<!--  end product-table................................... --> 
				</form>
			</div>
			<!--  end content-table  -->
		
			<!--  start actions-box ............................................... --><!-- end actions-box........... -->
			
			<!--  start paging..................................................... -->
			
			<!--  end paging................ -->
			
			<div class="clear"></div>
		 
		</div>
		<!--  end content-table-inner ............................................END  -->
		</td>
		<td id="tbl-border-right"></td>
	</tr>
	<tr>
		<th class="sized bottomleft"></th>
		<td id="tbl-border-bottom">&nbsp;</td>
		<th class="sized bottomright"></th>
	</tr>
	</table>
	<div class="clear">&nbsp;</div>

</div>
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>
<!--  end content-outer........................................................END -->

<div class="clear">&nbsp;</div>
    
<!-- start footer -->         
<div id="footer">
	<!--  start footer-left -->
	<div id="footer-left">
	
	Admin Skin &copy; Copyright Internet Dreams Ltd. <span id="spanYear"></span> <a href="">www.netdreams.co.uk</a>. All rights reserved.</div>
	<!--  end footer-left -->
	<div class="clear">&nbsp;</div>
</div>
<!-- end footer -->
 
</body>
</html>